package com.isnotlocus.gulimail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.isnotlocus.common.utils.PageUtils;
import com.isnotlocus.gulimail.product.entity.AttrAttrgroupRelationEntity;
import com.isnotlocus.gulimail.product.entity.AttrEntity;
import com.isnotlocus.gulimail.product.vo.AttrRelationVo;
import com.isnotlocus.gulimail.product.vo.AttrResponseVo;
import com.isnotlocus.gulimail.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author IsnotLocus
 * @email sunlightcs@gmail.com
 * @date 2020-07-16 17:00:57
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attr);

    PageUtils SelectAttrByPage(Map<String, Object> map, Long categoryId, String attrType);

   AttrResponseVo getAttrInfo(Long attrId);

    int UpdateByDetails(AttrVO attr);

    List<AttrEntity> getAttrByAttrgourp(Long attrGroupId);

    void deleteRelationByAttrIdAndGroupId(AttrRelationVo[] attrRelationVo);

    PageUtils getNotRelationAttr(Long AttrGroupId,Map<String,Object> map);

    /**
     * 在指定的所有属性集合里面挑出我们的检索属性
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrs(List<Long> attrIds);
}

